package Factory_method_model.Reader;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class client {
    public static void main(String[] args) {
        System.out.println("当前为gif");
        ImageReaderFactory factory;
        ImageReader imageReader;
        factory=new GifReaderFactory();
        imageReader=factory.createImage();
        imageReader.readimage();
        System.out.println("当前为Jpg");
        ImageReaderFactory factory1;
        ImageReader imageReader1;
        factory1=new JpgReaderFactory();
        imageReader1=factory1.createImage();
        imageReader1.readimage();
    }
}
